<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" errorPage="error/500.jsp"%>
<%@ include file="/WEB-INF/include/commonTaglib.jsp"%>
<%@page import="entities.login.User" %>
<%@page import="util.base.CurrentUser" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>测试专用系统</title>
<script type="text/javascript">
 $(function(){
	 //设置时间
	 clock();
	 setInterval("clock()",1000);
	 //设置tab选项卡的鼠标经过事件
	 var tabs = $('#homePage').tabs('tabs');
     for(var i=0; i<tabs.length; i++){
	 tabs[i].panel('options').tab.unbind().bind('mouseenter',{title:tabs[i].panel('options').title},function(e){
		 $('#homePage').tabs('select', e.data.title);
	 });
	 }
	 
 })
 //计时器
 function clock(){
	 var currentTime=new Date().toLocaleDateString()+new Date().toLocaleTimeString();
	 $("#time").text(currentTime);
}
</script>
<style type="text/css">
a {
text-decoration:none;
out-line: none;
}
</style>
</head>
<body class="easyui-layout" data-options="fit:true">
    <div data-options="region:'north',collapsible:false"  style="overflow:hidden;height:10%;background: url(${ctx}/static/img/home/background.png) no-repeat  0">
        <div style="float:right;margin-right:20px;width:50%;text-align:right"><p>欢迎<span><%=CurrentUser.getCurrentUser().getName()%></span>现在是:<span id="time"></span></p>
        <p>
        <a href="${ctx}/logout">退出</a>
        </p>
        </div>
        </div>
    </div>
    <div data-options="region:'west',title:'',split:false" style="width:150px;">
            <iframe id="westMenu" src="${ctx}/jump/westMenu" style="margin: 0px 0px;width: 100%;height: 100%;border:0"></iframe>
    </div>
    <div data-options="region:'center'" style="background:#eee;">
    <div id="homePage" class="easyui-tabs" style="width:100%;height:100%;">
    <div title="欢迎页面" data-options="closable:true" >
		<iframe src="${ctx}/jump/welcome" style="margin: 0px 0px;width: 100%;height: 100%;border:0"></iframe>
    </div>
    </div>
    </div>
    <div data-options="region:'south',title:''" style="height:5%;">
       <div style="margin:0 auto;text-align:center">©个人所有</div>
    </div>
</body>
</html>